package main

import (
	"encoding/hex"
	"log"

	"gitee.com/yctxkj/cstructparse/cstconv"
	"gitee.com/yctxkj/cstructparse/pkg"
)

func main() {
	ss := "010053696e6f43697068657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000053696e6f4369706865720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007a61796b3030310000000000000000000000000000000000000000000000000030303138303931373441384534353338353533353333333100000000000000000100010003170000000107000f000000010700000000020000f70100000800000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000a04f8f77fc7f"
	bytTmp, _ := hex.DecodeString(ss)

	log.Printf("字节数组: %v\n", ss)
	//GetVal(bytTmp)

	tmp := pkg.UK_CosDEVINFO{}
	//Bytes_2_Struct(bytTmp, &tmp)

	//PrtStruct(&tmp)
	cstconv.GetStruct(bytTmp, &tmp)

	log.Printf("结构体: %#v\n", tmp)
}
